using UnityEngine.UI;

public class FirstScreen : UIScreen
{
	public InputField nameInput;

	public Button playButton;

	private void Start()
	{
		playButton.onClick.AddListener(Handle_PlayButtonClick);
	}

	private void Handle_PlayButtonClick()
	{
		Values.Instance.PlayerName = nameInput.text;
		GameManager.Instance.StartGame();
	}

	public override void ShowScreen()
	{
		nameInput.text = Values.Instance.PlayerName;
	}
}
